package com.yungu.swift.system.marketing.model.enums;

/**
 * @author : cuixiuyin
 * @date : 2019/6/13
 */
public enum MarketingErrorEnum {

    /**
     * Marketing 模块错误码信息返回
     */
    GIFT_NOT_FOUND(5100, "找不到礼包数据"),
    COUNT_LIMIT(5101, "开启数量达到上限"),
    CDKEY_INVALID(5102, "兑换码/口令无效"),
    CDKEY_USED(5103, "兑换码/口令已被使用"),
    CDKEY_REPEAT(5104, "兑换码/口令已存在"),
    ACTIVITY_COUNT_LIMIT(5002, "活动数量已达到上限"),
    ;

    private Integer code;
    private String msg;

    MarketingErrorEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
